﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EAF.Core.DataConnections
{
    /// <summary>
    /// An attribute used to define an SqlDataSource
    /// </summary>
    /// <example>[SqlDataSource("....")]public class EntityA {}</example>
    [AttributeUsage (AttributeTargets.Class, AllowMultiple=true)]
   public class SqlSource:Attribute
    {
        private string _connectionString;
        public string ConnectionString
        {
            get { return _connectionString; }
            set { _connectionString = value; }
        }

        private string _sourceName;
        public string SourceName
        {
            get { return _sourceName; }
            set { _sourceName = value; }
        }
        public SqlSource(string conString)
        {
            _connectionString = conString;
        }



    }
}
